﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class IniciarSesionWF : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Login1_Authenticate1(object sender, AuthenticateEventArgs e)
    {
        if (GestorUsuarios.verificarUsuarioClave(Login1.UserName, Login1.Password))
        {
            e.Authenticated = true;  // genera cookie de seguridad con datos del usuario 
        }
        else
        {
            e.Authenticated = false;
        }
    }
}